feat: add Kiro CLI adapter - #115
Conversation
|
Hi, thank you for your contribution, but this PR doesn't seem to resolve the integration. I'm not sure that it was tested or not. There is no such There are things that can give you hints to solve the integration:
Please make sure you test all the workflows, from agent list, agent send, agent open, and all the features work well with the new agent type (kiro) in the agent console. Thank you. |
The adapter looked under ~/.kiro/cli/sessions, which does not exist. Per review, Kiro stores CLI sessions under ~/.kiro/sessions/cli/ and marks a running session with a lock file in that directory. Discover active sessions from those locks and resolve each one to its sibling metadata and transcript, instead of scanning a path that is never populated.
|
You were right, it was not tested against a running Kiro and the path was wrong. Now reads 431 tests pass in |
Summary
Adds a Kiro CLI adapter to
agent-managerso AI DevKit can detect, list, start, and route messages to Kiro CLI sessions, the same way it already does for Claude Code, Codex, Copilot, Gemini CLI, OpenCode, and Pi.Why this matters
Closes the maintainer-declared work item in #109 ("Support Kiro CLI in agent-manager"). Kiro was the one requested coding agent not yet wired into the adapter layer, so
agent list,agent start --type kiro,agent sessions --type kiro, and the channel bridge had no way to reach it.Changes
KiroAdapter(packages/agent-manager/src/adapters/KiroAdapter.ts), mirroring the existingPiAdapter: process detection, PID-to-session tracker matching, defensive JSONL session parsing, conversation/listSessionssupport, and idle/waiting status. Reads sessions from~/.kiro/cli/sessionsand gracefully returns empty results when that directory is absent.AgentTypeunion with'kiro'and exportedKiroAdapterfromadapters/index.tsandagent-manager/src/index.ts.kiroin theAGENTSregistry (launch commandkiro-cli; process matcher accepts thekiro-cliorkirobasename) and added it toStartableAgentType.new KiroAdapter()in bothAgentManagerfactories (cli/src/commands/agent.tsandcli/src/services/channel/channel-runner.ts), added theKirodisplay label, extended the--typehelp text, and added'kiro'toVALID_AGENT_TYPES.Testing
KiroAdapter.test.ts(type identity,kiro-cli/kiroprocess matching with no false positives, session detection) — agent-manager suite: 435 passed.sessions.test.ts,agent.test.ts,channel.test.ts, andStartAgentPane.test.tsfor the new type/registration/cycle order — cli suite: 808 passed.nx run-many -t build -p agent-manager(swc +tsctypecheck) andnx run-many -t lint -p agent-manager cliboth clean.Fixes #109
AI was used for assistance.